package com.dji.system.core.nio;

import com.dji.bean.Compoment;
import com.dji.bean.CompomentData;
@Compoment
public class CommandExecute {

	/**
	 * 客户端从服务器请求数据
	 * 
	 * @param request
	 * @return
	 */
	public <T> CompomentData<T> request(CompomentData<T> request) {
		CompomentData<T> result = new CompomentData<T>(CompomentData.SERVICE_FAIL);
		
		return result;
	}

	/**
	 * 服务器主动向客户端发送命令
	 * 
	 * @param request
	 * @return
	 */
	public <T> CompomentData<T> push(CompomentData<T> request) {
		CompomentData<T> result = new CompomentData<T>(CompomentData.SERVICE_FAIL);

		return result;
	}
}
